
#include "head.h"

/*****************************************************
* 映射printf到调试串口
******************************************************/
int serial_putc( char c, struct __file * )
{
  Serial.write( c );
  return c;
}

void printf_init(void)
{
  fdevopen( &serial_putc, 0 );
}

